Skip to content

Result<T, E> + return inlined NDT for built-in impls#454

Merged
oscartbeaumont merged 43 commits intomainfrom
drop-function-result
Mar 10, 2026
Merged

Result<T, E> + return inlined NDT for built-in impls#454
oscartbeaumont merged 43 commits intomainfrom
drop-function-result

Conversation

@oscartbeaumont
Copy link
Member

@oscartbeaumont oscartbeaumont commented Mar 3, 2026

Closes #415

Changes:

  • Add impl Type for Result<T, E> implementation
  • Regig FunctionResult trait and drop FunctionReturnType enum
  • Replace all built-in implementation on non-primitives to return an inline NDT (this is gonna be powerful in userspace)
  • impl Type for str to reduce needs for special combinations (and Serde supports it)
  • Rename Primtivies::String to Primitives::str to be more consistent now that we have an impl for it.
  • #[cfg(feature = "derive")] is no longer required for 3rd party crate features. This should should also save some compile time.
  • Moved DataType::Generic to Reference::Generic + overhaul it's identity system to properly handle shadowing and cleanup API surface.

Closes #415, #349, #455

@oscartbeaumont oscartbeaumont changed the title Result<T, E> Result<T, E> + return inlined NDT for built-in impls Mar 3, 2026
@oscartbeaumont oscartbeaumont marked this pull request as ready for review March 10, 2026 06:21
@oscartbeaumont oscartbeaumont merged commit 0987871 into main Mar 10, 2026
5 checks passed
@oscartbeaumont oscartbeaumont deleted the drop-function-result branch March 10, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Result<T, E> doesn't implement Type

1 participant